﻿@using AdverseEventReportSystem.BLL.ServiceReference1;
@{
    var menu = ViewBag.Menu as tb_Menu;
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <link href="~/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="~/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <link href="~/lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/css/common.css" rel="stylesheet" type="text/css" />
    <script src="~/lib/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="~/lib/ligerUI/js/ligerui.all.js"></script>
    <script src="~/Scripts/common.js"></script>
    <style>
        .iconlist {
            width: 360px;
            padding: 3px;
        }

            .iconlist li {
                border: 1px solid #FFFFFF;
                float: left;
                display: block;
                padding: 2px;
                cursor: pointer;
            }

                .iconlist li.over {
                    border: 1px solid #516B9F;
                }

                .iconlist li img {
                    height: 16px;
                    height: 16px;
                }
    </style>
</head>
<body>
    <div style="margin:10px 0px;">
        <table class="gridtable">
            <tr>
                <td style="text-align:right; width:100px;">
                    菜单类型：
                </td>
                <td>
                    <div style="float:left;margin-top:4px;">
                        <select id="menuType">
                            <option value="0" @(menu.MenuType == 0 || menu.Id == 0 ? "selected" : "")>web</option>
                            <option value="1" @(menu.MenuType == 1 ? "selected" : "")>winform</option>
                        </select>
                    </div>
                    <div id="divDisplayStyle" style="float:left;margin-left:10px;display:@(menu.MenuType == 0 || string.IsNullOrEmpty(menu.MenuType.ToString()) ? "" : "none")">
                        公用：<input type="checkbox" id="chkDisplayStyle" class="l-checkbox" @(menu.DisplayStyle == "2" || menu.Id == 0 ? "checked" : "") />
                    </div>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    菜单名称：
                </td>
                <td>
                    <input type="text" id="txtName" class="l-text" style="width:250px;" value="@(menu.MenuName)" /><font style="color:red;">&nbsp;*</font>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    菜单编码：
                </td>
                <td>
                    <input type="text" id="txtMenuId" class="l-text" style="width:250px;" value="@(menu.MenuId)" /><font style="color:red;">&nbsp;*</font>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    菜单地址：
                </td>
                <td>
                    <input type="text" id="txtPath" class="l-text" style="width:250px;" value="@(menu.MenuPath)" />
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    上级菜单：
                </td>
                <td>
                    <input type="text" id="parentId" style="width:250px;" value="@(menu.ParentId)" />
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    菜单图标：
                </td>
                <td>
                    <input type="text" id="txtImgUrl" class="l-text" style="width:250px;" value="@(menu.ImgUrl)" />
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    是否可见：
                </td>
                <td>
                    <div style="float:left;">
                        <input type="checkbox" id="chkIsVisible" class="l-checkbox" @(menu.IsVisible == 0 || menu.Id == 0 ? "checked" : "") />
                    </div>
                    <div style="float:left;margin-left:100px">
                        是否单独Tab：
                        <input type="checkbox" id="chkIstab" class="l-checkbox" @(menu.Istab == 1 || menu.Id == 0 ? "checked" : "") />
                    </div>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    排序：
                </td>
                <td>
                    <input type="text" id="txtSort" class="l-text" style="width:250px;" value="@(menu.Sort??0)" />
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    备注：
                </td>
                <td style="padding-top: 5px;">
                    <div style="width:240px;">
                        <textarea id="txtRemarks" rows="5" class="l-textarea" maxlength="500" style="padding:5px;width:100%;">@(menu.Remarks)</textarea>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center;padding-top:10px;">
                    <input id="btnSubmit" type="button" value="确定" class="l-button" onclick="save()" />&nbsp;&nbsp;&nbsp;
                    <input id="btnCancel" type="button" value="取消" class="l-button-cancel" onclick="closeDialog()" />
                </td>
            </tr>
            <tr></tr>
        </table>
        <input type="hidden" id="hdnMenuId" value="@(menu.Id)" />
    </div>
</body>
</html>
@{
    <script src="~/Areas/Sysbase/Scripts/EditMenu.js"></script>
}
